﻿using System;

namespace Lyh.Core.Domain
{
    public abstract class Entity
    {
        private string id = Guid.NewGuid().ToString();
        private DateTime createDateTime = DateTime.Now;

        public virtual string Id
        {
            get { return id; }
            set { id = value; }
        }

        public virtual DateTime CreateTime
        {
            get { return createDateTime; }
            set { createDateTime = value; }
        }

        public virtual bool IsDeleted { get; set; }
        public virtual int Version { get; set; }
    }
}